<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><div class="text-left">规则组</div></th>
            <th width="10%">权重</th>
            <th>状态</th>
            <th>备注</th>
            <th>录入时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td class="text-left">{$item.group_name}</td>
                <td class="text-left">
                    <input type="number" name="sort" data-url="{:url('save',['group_id'=>$item['group_id']])}" value="{$item.sort}" data-val="{$item.sort}" class="layui-input input-sort">
                </td>
                <td>
                    {php}$status = $item['status'];{/php}
                    <a href="{:url('save',['group_id'=>$item['group_id'], 'status'=>abs(1-$status)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td>{$item.remark}</td>
                <td>{$item.create_time|substr=0,10}</td>
                <td class="text-left">
                    <a href="{:url('info',['group_id'=>$item['group_id']])}" width-form="80%" height-form="80%" class="layui-btn layui-btn-xs ajax-form" title="配置详情">详情</a>
                    {if $is_show_add}
                    <a href="{:url('add',['group_id'=>$item['group_id']])}" class="layui-btn layui-btn-xs layui-btn-normal">编辑</a>
                    {/if}
                    {if $is_show_delete}
                    <a href="{:url('delete',['ids'=>$item['group_id']])}" title="删除" confirm="1" class="layui-btn layui-btn-xs layui-btn-danger ajax-get">删除</a>
                    {/if}
                </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="6">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>